"""
规格管理视图
"""
from rest_framework.viewsets import ModelViewSet
from goods.models import SPUSpecification
from meiduo_admin.serializers.specs_serializers import *
from meiduo_admin.paginations import MyPage

class SpecsView(ModelViewSet):

    queryset = SPUSpecification.objects.all()
    serializer_class = SPUSpecificationSerializer
    pagination_class = MyPage